<script src="DangKy/js/kiemtra.js" type="text/javascript" language="javascript">
</script> 
<form id="form1" name="DKUser" method="post" action="xldangky.php" onsubmit="return KiemTraTatCa()">
    <table width="620" border="0" align="center">
      <tr>
        <td height="33" colspan="2"><div id = "tieude">.: ĐĂNG KÝ TÀI KHOẢN :.</div></td>
      </tr>
      <tr>
        <td colspan="2"><div id = "tdn">Thông tin tài khoản</div></td>
      </tr>
      <tr>
        <td width="250"><div id="ttin">Tên đăng nhập:</div></td>
        <td width="334"><input type="text" name="txtUserName" onblur="KTUsersName()">*
        </td>
      </tr>
      
      <tr>
        <td colspan="2"><div class="hide error" id="alertUName"></div></td>
      </tr>
      
      <tr>
        <td><div id="ttin">Mật khẩu:</div></td>
        <td><input type="password" name="txtPass" onblur="KTMatKhau()">*</td>
      </tr>
      <tr>
        <td colspan="2"><div class="hide error" id="alertPass"></div></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td>(Từ 6 đến 20 kí tự)</td>
      </tr>
      <tr>
        <td height="24"><div id="ttin">Gõ lại mật khẩu:</div></td>
        <td><input type="password" name="txtRePass" onblur="KTMatKhau()">*</td>
      </tr>
      <tr>
        <td colspan="2"><div class="hide error" id="alertRePass"></div></td>
      </tr>
      <tr>
        <td height="24"><div id="ttin">Email:</div></td>
        <td><input type="text" name="txtEmail" onblur="KTEmail()"/>*</td>
      </tr>
      <tr>
        <td colspan="2"><div class="hide error" id="alertEmail"></div></td>
      </tr>
      <tr>
        <td height="2" colspan="2" bgcolor="#00FF66"></td>
      </tr>
      
      
      <tr>
        <td colspan="2"><div id="tdn">Thông tin cá nhân</div></td>
      </tr>
      
      <tr>
        <td width="250"><div id="ttin">Họ:</div></td>
        <td width="334"><input type="text" name="txtHo" onblur="KiemTraHo()">*
        </td>
      </tr>
      
      <tr>
        <td colspan="2"><div class="hide error" id="alertHo"></div></td>
      </tr>
      
      <tr>
        <td width="250"><div id="ttin">Tên:</div></td>
        <td width="334"><input type="text" name="txtTen" onblur="KiemTraTen()">*
        </td>
      </tr>
      
      <tr>
        <td colspan="2"><div class="hide error" id="alertTen"></div></td>
      </tr>
      
      <tr>
        <td><div id="ttin">Giới tính:</div></td>
        <td> <select name="gioitinh" onblur="KiemTraGioiTinh()">
        <option value="GioiTinh">[Giới Tính]</option>
        <option value="nam">nam</option>
        <option value="nữ">nữ</option>
        </select>
        </td>
      </tr>
      <tr>
        <td colspan="2"><div class="hide error" id="alertSex"></div>
      <tr>
        <td><div id="ttin">Ngày tháng năm sinh:</div></td>
        <td>
             <select name="Ngay" style="width: 60px;">
             <?php
			 	for($i = 1; $i < 32; $i++)
				{
             ?>
             		<option><?php echo $i;?></option>
             <?php
				}
             ?>
             </select>/
             <select name="Thang" style="width: 60px;">	
             <?php
			 	for($i = 1; $i < 13; $i++)
				{
             ?>
             		<option><?php echo $i;?></option>
             <?php
				}
             ?>						
             </select>/
             <?php
			 	$namhientai = date("Y");
             ?>
             <select name="Nam" style="width: 60px;">	
             <?php
			 	for($i = $namhientai; $i >= 1940; $i--)
				{
             ?>
             		<option><?php echo $i;?></option>
             <?php
				}
             ?>		
             </select>
        </td>
      </tr>
      <tr>
        <td colspan="2"><div class="hide error" id="alertBirthDay"></div></td>
      </tr>
      <tr>
        <td><div id="ttin">Nơi ở hiện tại:</div></td>
        <td>
        <select name="NoiO" onblur="KiemTraNoiO()">
        <option value="tinhthanh">Tỉnh/Thành phố</option>
        <option value="Đồng Nai">Đồng Nai</option>
        <option value="TPHCM">TP.HCM</option>
        <option value="Huế">Huế</option>
        <option value="Đà Nẵng">Đà Nẵng</option>
        <option value="Hà Nội">Hà Nội</option>
        <option value="Lâm Đồng">Lâm Đồng</option>
        </select>
        </td>
      </tr>
      <tr>
        <td colspan="2"><div class="hide error" id="alertLocation"></div></td>
      </tr>
      <tr>
        <td><div id="ttin">Điện thoại liên lạc:</div></td>
        <td><input type="text" name="txtDienThoai" onblur="KiemTraSDT()">từ 6 đến 11 số</td>
      </tr>
      <tr>
        <td colspan="2"><div class="hide error" id="alertPhone"></div></td>
      </tr>
      <tr>
        <td height="2" colspan="2" bgcolor="#00FF66"></td>
      </tr>
      <tr>
        <td><div id="ttin"><input type="submit" value="Đăng ký" name="btDangky"></div></td>
        <td><input type="reset" value="Xóa" name="btXoa"></td>
      </tr>
    </table>
  </form>